package org.lora.mvc.entity;

import java.util.Map;

/**
 * <p>
 * Title:ViewData
 * </p>
 * <p>
 * Desription:视图实体
 * </p>
 * Create Time:2016年7月6日 下午12:30:50
 * 
 * @author Bladnir@outlook.com
 *         <p>
 *         History:
 *         </p>
 *         2016年7月6日 Bladnir Create</br>
 */
public class ViewData {

	private String direction;

	private Map<String, Object> dataMap;

	private boolean isSendRedirect = false;

	/**
	 * 构造方法
	 * 
	 * @param direction
	 */
	public ViewData(String direction) {
		this.direction = direction;
	}

	/**
	 * 构造方法
	 * 
	 * @param direction
	 * @param dataMap
	 */
	public ViewData(String direction, Map<String, Object> dataMap) {
		this.direction = direction;
		this.dataMap = dataMap;
	}

	/**
	 * 构造方法
	 * 
	 * @param direction
	 * @param dataMap
	 * @param isSendRedirect
	 */
	public ViewData(String direction, Map<String, Object> dataMap, boolean isSendRedirect) {
		this.direction = direction;
		this.dataMap = dataMap;
		this.isSendRedirect = isSendRedirect;
	}

	public boolean isSendRedirect() {
		return isSendRedirect;
	}

	public void setSendRedirect(boolean isSendRedirect) {
		this.isSendRedirect = isSendRedirect;
	}

	public String getDirection() {
		return direction;
	}

	public void setDirection(String direction) {
		this.direction = direction;
	}

	public Map<String, Object> getDataMap() {
		return dataMap;
	}

	public void setDataMap(Map<String, Object> dataMap) {
		this.dataMap = dataMap;
	}

}
